<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use frontend\components\TagsCloudWidget;
use frontend\components\RctReplyWidget;
use common\models\Post;

/* @var $this yii\web\View */
/* @var $searchModel common\models\PostSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

?>
<!doctype html>
<html>
<head>
    <meta charset="gbk">
    <title>个人博客- 一个技术员个人博客网站</title>
    <meta name="keywords" content="个人博客" />
    <meta name="description" content="一个技术员个人博客网站" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/base.css" rel="stylesheet">
    <link href="css/index.css" rel="stylesheet">
    <link href="css/m.css" rel="stylesheet">
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/jquery.easyfader.min.js"></script>
    <script src="js/scrollReveal.js"></script>
    <script src="js/common.js"></script>
    <!--[if lt IE 9]>
    <script src="js/modernizr.js"></script>
    <![endif]-->
</head>
<body>
<header>
    <!--menu begin-->
    <?php include 'menu.php';?>
    <?php include 'mnav.php';?>
    <!--mnav end-->
</header>
<article>
    <!--banner begin-->
    <div class="picsbox">
        <div class="banner">
            <div id="banner" class="fader">
                <li class="slide" ><a target="_blank"><img src="images/banner01.jpg"><span class="imginfo">别让这些闹心的套路，毁了你的网页设计!</span></a></li>
                <li class="slide" ><a target="_blank"><img src="images/banner02.jpg"><span class="imginfo">网页中图片属性固定宽度，如何用js改变大小</span></a></li>
                <li class="slide" ><a  target="_blank"><img src="images/banner03.jpg"><span class="imginfo">个人博客，属于我的小世界！</span></a></li>
                <div class="fader_controls">
                    <div class="page prev" data-target="prev">&lsaquo;</div>
                    <div class="page next" data-target="next">&rsaquo;</div>
                    <ul class="pager_list">
                    </ul>
                </div>
            </div>
        </div>
        <!--banner end-->

    </div>
    <div class="blank"></div>
    <!--blogsbox begin-->
    <div class="blogsbox">
        <?php foreach($data as $k): ?>
        <div class="blogs" data-scroll-reveal="enter bottom over 1s" >
            <h3 class="blogtitle"><a href="<?=  \yii\helpers\Url::toRoute(['post/detail','id'=>$k['id'],'sid'=>$sid,'username'=>$username]);?>" target="_blank"><?=$k['title'];?></a></h3>
            <span class="blogpic"><a href="<?=  \yii\helpers\Url::toRoute(['post/detail','id'=>$k['id'],'sid'=>$sid, 'username'=>$username]);?>" title=""><img src="<?=$k['image'];?>" alt=""></a></span>
            <p class="blogtext"><?=mb_substr(strip_tags($k['content']),0,50,'utf-8');?></p>
        </div>
        <?php endforeach; ?>

    </div>
    <!--blogsbox end-->

</article>
<footer>
    <p>Design by <a href="" target="_blank">个人博客</a> <a href="/">粤ICP备19035164号</a></p>
</footer>
<a href="#" class="cd-top">Top</a>
</body>
</html>
